package com.cnap.multiclouldmgmt.model.scale.db;

/**
 * 伸缩策略
 *
 * @author xc
 **/
public class ScalingPolicyPO {
    // id
    private String id;
    // 监控周期（分钟）
    private int duration;
    // 连续出现的次数
    private int continuousNum;
    // 冷却时间（秒）
    private int coolTime;
    // 扩容或者缩容
    private String type;
    // 扩缩容数量
    private int num;
    // 触发条件 资源 cpu/内存
    private String resource;
    // 值 百分数
    private int value;

    private String groupId;

    /**
     * get
     *
     * @return Id
     */
    public String getId() {
        return id;
    }

    /**
     * set
     *
     * @param id id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * get
     *
     * @return Duration
     */
    public int getDuration() {
        return duration;
    }

    /**
     * set
     *
     * @param duration duration
     */
    public void setDuration(int duration) {
        this.duration = duration;
    }

    /**
     * get
     *
     * @return ContinuousNum
     */
    public int getContinuousNum() {
        return continuousNum;
    }

    /**
     * set
     *
     * @param continuousNum continuousNum
     */
    public void setContinuousNum(int continuousNum) {
        this.continuousNum = continuousNum;
    }

    /**
     * get
     *
     * @return CoolTime
     */
    public int getCoolTime() {
        return coolTime;
    }

    /**
     * set
     *
     * @param coolTime coolTime
     */
    public void setCoolTime(int coolTime) {
        this.coolTime = coolTime;
    }

    /**
     * get
     *
     * @return Type
     */
    public String getType() {
        return type;
    }

    /**
     * set
     *
     * @param type type
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * get
     *
     * @return Num
     */
    public int getNum() {
        return num;
    }

    /**
     * set
     *
     * @param num num
     */
    public void setNum(int num) {
        this.num = num;
    }

    /**
     * get
     *
     * @return Resource
     */
    public String getResource() {
        return resource;
    }

    /**
     * set
     *
     * @param resource resource
     */
    public void setResource(String resource) {
        this.resource = resource;
    }

    /**
     * get
     *
     * @return Value
     */
    public int getValue() {
        return value;
    }

    /**
     * set
     *
     * @param value value
     */
    public void setValue(int value) {
        this.value = value;
    }

    /**
     * get
     *
     * @return GroupId
     */
    public String getGroupId() {
        return groupId;
    }

    /**
     * set
     *
     * @param groupId groupId
     */
    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    @Override
    public String toString() {
        return "ScalingPolicyPO{" +
                "id='" + id + '\'' +
                ", duration=" + duration +
                ", continuousNum=" + continuousNum +
                ", coolTime=" + coolTime +
                ", type='" + type + '\'' +
                ", num=" + num +
                ", resource='" + resource + '\'' +
                ", value=" + value +
                ", groupId='" + groupId + '\'' +
                '}';
    }
}
